﻿using UnityEngine;

namespace UFrame
{
    public abstract class SkillSecondWindow : BaseEditorArea<EffectEditor>
    {
        static int idCount = 0;
        public int id;
        protected string name = string.Empty;
        public SkillSecondWindow(EffectEditor t, float x, float y, float width, float height) : base(t, x, y, width, height)
        {
            id = idCount++;
        }

        public override void OnEditorEvent(IEditorEvent e)
        {

        }

        public sealed override void DrawArea()
        {
            rect = GUI.Window(id, rect, Draw, name);
        }

        protected abstract void Draw(int id);

    }
}
